package hr.riteh.assistivecommunicator;

import java.io.File;

import android.content.Context;

public class FileResourceManager
{
	// Directory names
	private static String DIRECTORY_IMAGES = "images";

	// Directories
	private File mImagesDir;

	public FileResourceManager(Context context)
	{
		// Initialize images directory
		mImagesDir = context.getDir(DIRECTORY_IMAGES, Context.MODE_PRIVATE);
	}

	public File getImagesDir()
	{
		return mImagesDir;
	}

	public File getImageFile(String imagefilename)
	{
		return new File(getImagesDir(), imagefilename);
	}

	public String getImagePath(String imagefilename)
	{
		return getImageFile(imagefilename).getAbsolutePath();
	}
}
